/*
 *  lymph.cpp
 *  tumor
 *
 *  Created by wumin on 9/4/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */



#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;

#include "../ImprovedMath.h"
#include "../random.h"
#include "../ParseText.h"
#include "myangio.h"
#include "../Plotting.h"
#include "lymph.h"
#include "../Matrix.h"

LymphPoint::LymphPoint()
{ 
	i=0;
	j=0; 
	AmISink = 0;
	pNextLymphPoint = NULL; 
	pPreviousLymphPoint = NULL;
}

LymphPoint::~LymphPoint()
{
	return;
}



LymphStructure::LymphStructure()
{
	pFirstLymphPoint = NULL;
	pLastLymphPoint = NULL;
	NodeLength = 0;
	SproutNumber = 0;
	LymphListLength = 0;
	//cout <<"function LymphStructure running"<<endl;	
}

LymphStructure::~LymphStructure()
{
//cout <<"function ~LymphStructure running"<<endl;	
 LymphPoint* pCurrentLymphPoint = pFirstLymphPoint;
 if( pCurrentLymphPoint)
 {
	while(pCurrentLymphPoint)
	{
		pCurrentLymphPoint = pCurrentLymphPoint ->pNextLymphPoint;
		delete pCurrentLymphPoint->pPreviousLymphPoint;
	}
	delete pCurrentLymphPoint;
 }
}

